//
//  AccountPriceOtherFeeCell.m
//  NtoccShipper
//
//  Created by mac on 2019/12/31.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "AccountPriceOtherFeeCell.h"
@interface AccountPriceOtherFeeCell ()
@property (nonatomic,strong) CJLabel *labTitle;
@end
@implementation AccountPriceOtherFeeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellWithInfoTitle:(NSString *)strTitle withStrContent:(NSString *)str isEditor:(BOOL)editor{
//    self.fieldContent.delegate = self;
    self.fieldContent.enabled = NO;
    self.labTitle.text = strTitle;
    self.fieldContent.text = str;
    
//    if (editor) {
//        self.labTitle.textColor = [UIColor cjMainColorText];
//    }
}

- (void)setcellInfoWithDic:(NSDictionary *)dict{
    //    NSDictionary *dic = @{
    //        @"title":@"", // 左侧标题
    //        @"content":@"",//右侧数量
    //        @"isOtherFee":@"0",// 0 1 是
    //        @"isEditor":@"0",// 0 1 是否编辑
    //    @"isLoadAndDown":@"0",
    //        @"isUnitsNum":@"0",//  装卸货的 单位是否 是件
    //    };
        
//        self.fieldContent.delegate = self;
    self.fieldContent.enabled = [dict[@"isEditor"] intValue] == 1 ? YES:NO ;
    self.labTitle.text = dict[@"title"];
    self.fieldContent.text = dict[@"content"];

}

- (void)btnClickOtherFeeAction{
    if (self.blockOtherFee) {
        self.blockOtherFee(@"");
    }
}

@end
